package homework.mid_autumn_festival.string_exercise;

public class TrimDemo {
    public static void main(String[] args) {
        String str = "    Hello Word!  ";
        String trim = str.trim();
        System.out.println(trim);//Hello Word!
        System.out.println(str);//    Hello Word!
    }
}
